import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

import { AuthService } from '../shared/auth.service';

import 'material-design-lite';

@Component({
  templateUrl: './dock.component.html',
  styleUrls: ['./dock.component.scss'],
})
export class DockComponent implements OnInit {
  public subtitle = '(Final)';
  constructor(
    public authService: AuthService,
    public router: Router) {
  }

  public ngOnInit() {
    componentHandler.upgradeAllRegistered();
  }

  public logout() {
    this.authService.logout();
    this.router.navigate(['/login']);
  }

}
